<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateShopsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('shops', function(Blueprint $table)
		{
			$table->integer('id', true)->comment('店铺表的id');
			$table->string('shop_name', 100)->nullable()->comment('商店的名称');
			$table->string('shop_info')->nullable()->comment('商店的信息');
			$table->string('shop_secret')->nullable()->comment('商店秘钥');
			$table->integer('state')->nullable()->default(0)->comment('状态');
			$table->string('point', 50)->nullable()->default('')->comment('经纬度');
			$table->dateTime('open_time')->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('shops');
	}

}
